@namespace DaoHang.Components.Pages.AIRecommendation
@using DaoHang.Models

<div class="recommendation-stats">
    <div class="row">
        <div class="col-md-3">
            <div class="stat-card">
                <div class="stat-icon">
                    <i class="bi bi-lightbulb"></i>
                </div>
                <div class="stat-info">
                    <h3>@TotalCount</h3>
                    <p>推荐网站</p>
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="stat-card">
                <div class="stat-icon">
                    <i class="bi bi-check-circle"></i>
                </div>
                <div class="stat-info">
                    <h3>@SelectedCount</h3>
                    <p>已选择</p>
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="stat-card">
                <div class="stat-icon">
                    <i class="bi bi-star"></i>
                </div>
                <div class="stat-info">
                    <h3>@AverageScore.ToString("F1")</h3>
                    <p>平均评分</p>
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="stat-card">
                <div class="stat-icon">
                    <i class="bi bi-geo-alt"></i>
                </div>
                <div class="stat-info">
                    <h3>@ChineseWebsiteCount</h3>
                    <p>中国网站</p>
                </div>
            </div>
        </div>
    </div>
    <div class="row mt-3">
        <div class="col-12">
            <div class="recommendation-info">
                <div class="d-flex align-items-center justify-content-between flex-wrap">
                    <div class="mb-2 mb-md-0">
                        <i class="bi bi-info-circle text-primary me-2"></i>
                        <span class="text-muted">
                            AI已为"@CategoryName"推荐了 @TotalCount 个优质网站，
                            其中 @ChineseWebsiteCount 个中国网站，@(TotalCount - ChineseWebsiteCount)个国外网站
                        </span>
                    </div>
                    <div>
                        <small class="text-muted">已排除 @ExistingWebsitesCount 个现有网站</small>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

@code {
    /// <summary>
    /// 分类名称
    /// </summary>
    [Parameter]
    public string CategoryName { get; set; } = string.Empty;

    /// <summary>
    /// 总推荐数量
    /// </summary>
    [Parameter]
    public int TotalCount { get; set; }

    /// <summary>
    /// 已选择数量
    /// </summary>
    [Parameter]
    public int SelectedCount { get; set; }

    /// <summary>
    /// 平均评分
    /// </summary>
    [Parameter]
    public double AverageScore { get; set; }

    /// <summary>
    /// 中国网站数量
    /// </summary>
    [Parameter]
    public int ChineseWebsiteCount { get; set; }

    /// <summary>
    /// 已存在的网站数量
    /// </summary>
    [Parameter]
    public int ExistingWebsitesCount { get; set; }
} 